import { legacy_createStore, applyMiddleware } from "redux";

//action中要写异步再用
import thunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";


import reducer from "./reducers/index";
const store = legacy_createStore(
  reducer,
  composeWithDevTools(applyMiddleware(thunk))
);

export default store;